home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / DockExtenders / Locus / Source / Globals.h < prev    next >
Text File  |  1993-04-29  |  4KB  |  170 lines

  1.  
  2. /*
  3.     Copyright 1993  Jeremy Slade.
  4.  
  5.     You are free to use all or any parts of the Locus project
  6.     however you wish, just give credit where credit is due.
  7.     The author (Jeremy Slade) shall not be held responsible
  8.     for any damages that result out of use or misuse of any
  9.     part of this project.
  10.  
  11. */
  12.  
  13. /*
  14.     Project: Locus
  15.     
  16.     File: Globals.h
  17.  
  18.     Description:
  19.      
  20.     This file contains global variables, and other standard stuff that are used by all classes ( such as importing <appkit/appkit.h>).  The global variables are declard as externs here; the actual storage for them is in Globals.m
  21.     
  22.     Original Author: Jeremy Slade
  23.     
  24.     Revision History:
  25.         Created
  26.             V.101    JGS Mon Feb  1 22:18:39 GMT-0700 1993
  27.  
  28. */
  29.  
  30.  
  31. #ifndef Globals_h
  32. #define Globals_h
  33.  
  34. #define Globals_VERSION    (101)
  35.  
  36.  
  37. #import "ErrorReporting.h"
  38. #import "VersionInfo.h"
  39.  
  40. #import <appkit/appkit.h> // Do this automatically for all classes
  41.  
  42.  
  43. // Name of the directory under user's home where Folders are kept by default
  44. #define LIBRARY_DIR        "Library/Locus"
  45.  
  46. // Name of the directory (w/in LIB_DIR) where Custom Icons are located
  47. #define ICONS_DIR        "Icons"
  48.  
  49. // Name of the Folder automatically created when Locus is started
  50. #define DEFAULT_FOLDER    "Dock"
  51.  
  52. // Name of the file w/in the Folder file package containing general info
  53. #define FOLDER_INFO        ".folderinfo"
  54.  
  55. // Extension for Folders (the file package)
  56. #define FOLDER_EXT        "locus"
  57.  
  58. // Extnation for inidividual Group files within the Folder file package
  59. #define GROUP_EXT        "locgrp"
  60.  
  61.  
  62. // Is Locus AutoLaunching?
  63. extern BOOL isAutoLaunch;
  64.  
  65.  
  66. // debugging support -- see Locus_main.m
  67. extern BOOL DEBUGGING;
  68.  
  69.  
  70. /*
  71.  *  Preferences ----------------------------------------------------------
  72.  */
  73.  
  74. // Hide on autolaunch
  75. #define PREF_AUTOLAUNCH_HIDE    "AutolaunchHide"
  76. extern BOOL autolaunchHide;
  77.  
  78. // Mask defining which Activator bars are visible
  79. #define PREF_ACTIVATOR_MASK    "ActivatorMask"
  80. extern int activatorMask;
  81.  
  82. // Make activation bar float
  83. #define PREF_ACTIVATOR_FLOAT        "ActivatorFloat"
  84. extern BOOL floatActivator;
  85.  
  86. // Color of activator interior
  87. #define PREF_ACTIVATOR_COLOR    "ActivatorFillColor"
  88. extern NXColor activatorFillColor;
  89.  
  90. // Color of activator border
  91. #define PREF_ACTIVATOR_BORDER    "ActivatorBorderColor"
  92. extern NXColor activatorBorderColor;
  93.  
  94. // Location & Size of Main Panel
  95. #define PREF_VIEWER_FRAME        "ViewerFrame"
  96. extern NXRect defaultViewerFrame;
  97.  
  98. // Verify deletions, etc
  99. #define PREF_VERIFY        "VerifyActions"
  100. extern BOOL verifyActions;
  101.  
  102. // Autosave
  103. #define PREF_AUTOSAVE    "AutoSave"
  104. extern BOOL autoSave;
  105.  
  106. // Add through Activator
  107. #define PREF_ADD_ACTIVATOR    "AddThroughActivator"
  108. extern BOOL activatorAdd;
  109.  
  110. // Add through AppIcon
  111. #define PREF_ADD_APPICON        "AddThroughAppIcon"
  112. extern BOOL appIconAdd;
  113.  
  114. // InspectorMode
  115. #define PREF_INSPECTORMODE    "InspectorMode"
  116. extern int inspectorMode;
  117.  
  118. // InspectorLocation
  119. #define PREF_INSPECTORLOCATION    "InspectorLocation"
  120. extern NXPoint inspectorLocation;
  121.  
  122. // Hide on deactivate
  123. #define PREF_HIDEDEACTIVE        "HideOnDeactivate"
  124. extern BOOL hideDeactive;
  125.  
  126. // Startup Foldes
  127. #define PREF_STARTUPFOLDERS        "StartupFolders"
  128. extern id startupFolders;
  129.  
  130.  
  131. // Defines the default values for preferences:
  132. extern NXDefaultsVector Defaults;
  133.  
  134.  
  135. // Valid drag in types
  136. extern const char *dragInTypes[];
  137. #define DRAGINTYPES    1
  138.  
  139.  
  140.  
  141. /*
  142.  * Other Globals -------------------------------------------------
  143.  */
  144.  
  145. // The MainController
  146. extern id mainController;
  147.  
  148. // The FolderController
  149. extern id folderController;
  150.  
  151. // The Inspector
  152. extern id inspector;
  153.  
  154. // The Activator
  155. extern id activator;
  156.  
  157. // The AppIcon View
  158. extern id appIconView;
  159. extern unsigned int appIconNum;
  160.  
  161.  
  162. #define DIR_CREATE_MASK    (0777) // Mask used in creating directories
  163.  
  164.  
  165. // Function used to set up global vars
  166. void    initGlobals ( void );
  167.  
  168.  
  169. #endif // Globals_h
  170.